package com.huitu.whht.base.core.api.rel.user.entities;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import com.huitu.whht.api.core.common.base.BaseEntity;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeDeserializer;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeSerializer;
import java.time.LocalDateTime;

/**
 * 说明: 用户角色关系表实体类,表名称: REL_USER_ROLE <br/>
 * 日期: 2019-04-11
 * @author LiuCW
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class RelUserRole extends  BaseEntity {

private static final long serialVersionUID = 4L;

    /**
      * GUID
      */
    private String guid;
    /**
      * 用户GUID
      */
    private String userGuid;
    /**
      * 角色GUID
      */
    private String roleGuid;
    /**
      * 状态
      */
    private String status;
    /**
      * 修改人
      */
    private String modifier;
    /**
      * 属性建立时间
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    private LocalDateTime fromDate;
    /**
      * 属性终止时间
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    private LocalDateTime toDate;
    /**
      * 备注
      */
    private String note;
    /**
      * 角色生效的机构GUID
      */
    private String orgGuid;
}